Цифры 0 1 2 3 4 5 6 7 8 9 — это не единственные символы, которые считаются цифрами. Python следует правилам Unicode и считает «цифрами» сотни различных символов. Вот полный список таких символов.
Это влияет на такие функции, как int, unicode.isdecimal и даже re.match:
# Пример 1 int('෯') # Вывод: 9
# Пример 2 '٢'.isdecimal() # Вывод: True
# Пример 3 import re bool(re.match(r'\d', '౫')) # Вывод: True
Цифры 0 1 2 3 4 5 6 7 8 9 — это не единственные символы, которые считаются цифрами. Python следует правилам Unicode и считает «цифрами» сотни различных символов. Вот полный список таких символов.
Это влияет на такие функции, как int, unicode.isdecimal и даже re.match:
# Пример 1 int('෯') # Вывод: 9
# Пример 2 '٢'.isdecimal() # Вывод: True
# Пример 3 import re bool(re.match(r'\d', '౫')) # Вывод: True
Start with a fresh view of investing strategy. The combination of risks and fads this quarter looks to be topping. That means the future is ready to move in.Likely, there will not be a wholesale shift. Company actions will aim to benefit from economic growth, inflationary pressures and a return of market-determined interest rates. In turn, all of that should drive the stock market and investment returns higher.
Dump Scam in Leaked Telegram Chat
A leaked Telegram discussion by 50 so-called crypto influencers has exposed the extraordinary steps they take in order to profit on the back off unsuspecting defi investors. According to a leaked screenshot of the chat, an elaborate plan to defraud defi investors using the worthless “$Few” tokens had been hatched. $Few tokens would be airdropped to some of the influencers who in turn promoted these to unsuspecting followers on Twitter.
Библиотека Python разработчика | Книги по питону from fr